package com.java.demo;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Add {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-config.xml");
        ControllerDemo controllerDemo = context.getBean("controllerDemo",ControllerDemo.class);
        System.out.print(controllerDemo.getUser());
    }
}
